import request from "@/utils/request.js";

/**
 * 水上乐园详情
 */
export function water_info() {
    return request.get(`perform/water_info`, {}, {
        noAuth: true
    });
}

/**
 * 购票
 */
export function water_buy(data) {
    return request.post(`perform/water_ticket_confirm`, data, {
        noAuth: true
    });
}

/**
 * 购票支付
 */
export function pay(data) {
    return request.post(`perform/water_pay/${data.order_sn}`, data, {
        noAuth: true
    });
}

/**
 * 乐园订单列表
 */
export function water_order_list(data) {
    return request.get(`perform/water_order_list`, data, {
        noAuth: true
    });
}

/**
 * 乐园订单详情
 */
export function water_order_detail(id) {
    return request.get(`perform/water_order_detail/${id}`, {}, {
        noAuth: true
    });
}

/**
 * 取消乐园订单详情
 */
export function cancel_order(id) {
    return request.get(`perform/water_order_cancel/${id}`, {}, {
        noAuth: true
    });
}


/**
 * 删除乐园订单详情
 */
export function del_order(id) {
    return request.get(`perform/water_order_del/${id}`, {}, {
        noAuth: true
    });
}

/**
 * 退款乐园订单详情
 */
export function water_order_refund(id) {
    return request.get(`perform/water_order_refund/${id}`, {}, {
        noAuth: true
    });
}


/**
 * 根据订单号获取信息
 */
export function water_get_ticket(sno) {
    return request.get(`perform/water_get_ticket/${sno}`, {}, {
        noAuth: true
    });
}


/**
 * 验票
 */
export function water_verify_ticket(id) {
    return request.get(`perform/water_verify_ticket/${id}`, {}, {
        noAuth: true
    });
}

